package com.c.ctgproject.ui.review.car

import androidx.fragment.app.Fragment
import androidx.fragment.app.FragmentStatePagerAdapter
import androidx.lifecycle.ViewModelProvider
import com.c.ctgproject.R
import com.c.ctgproject.adapter.BaseFragmentStatePagerAdapter
import com.c.ctgproject.base.BaseActivity
import com.c.ctgproject.fragment.review.car.AgreeCarFragment
import com.c.ctgproject.fragment.review.car.RefuseCarFragment
import com.c.ctgproject.fragment.review.car.WaitCarFragment
import kotlinx.android.synthetic.main.activity_abandoned_car_main.mTabLayout
import kotlinx.android.synthetic.main.activity_abandoned_car_main.mViewPager

/**
 *作者:LiBW
 *创建日期: 2020/9/9
 *描述:报废审核列表  报废车价格申请审核
 */
class AbandonedCarActivity : BaseActivity() {
    override fun getLayout() = R.layout.activity_abandoned_car_main

    override fun event() {
        changeTransparentStatusBar()
        changeStatusIconColor(true)
        val titles = arrayOf("待审核", "已同意", "已拒绝")
        val fragmentList = ArrayList<Fragment>()
        fragmentList.add(WaitCarFragment())
        fragmentList.add(AgreeCarFragment())
        fragmentList.add(RefuseCarFragment())
        mTabLayout.setupWithViewPager(mViewPager)
        mViewPager.adapter = BaseFragmentStatePagerAdapter(titles, fragmentList, supportFragmentManager, FragmentStatePagerAdapter.BEHAVIOR_RESUME_ONLY_CURRENT_FRAGMENT)
    }

    override fun click() {

    }
}